﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Material_Formul : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Material_Formul", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Material_Formul", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Material_Formul", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Material_Formul", "UserName");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Material_Formul", "No");

        [Column]
        public string SAP_CODE { get { return _SAP_CODE; } set { _SAP_CODE = value; EntityState.FieldChange("SAP_CODE"); } } 
        private string _SAP_CODE;
        public static FieldInfo sAP_CODE = new FieldInfo("mdc_Material_Formul", "SAP_CODE");

        [Column]
        public string BPCS_Code { get { return _BPCS_Code; } set { _BPCS_Code = value; EntityState.FieldChange("BPCS_Code"); } }
        private string _BPCS_Code;
        public static FieldInfo bPCS_Code = new FieldInfo("mdc_Material_Formul", "BPCS_Code");

        [Column]
        public string Description_EN { get { return _Description_EN; } set { _Description_EN = value; EntityState.FieldChange("Description_EN"); } } 
        private string _Description_EN;
        public static FieldInfo description_EN = new FieldInfo("mdc_Material_Formul", "Description_EN");

        [Column]
        public string Description_ZH { get { return _Description_ZH; } set { _Description_ZH = value; EntityState.FieldChange("Description_ZH"); } } 
        private string _Description_ZH;
        public static FieldInfo description_ZH = new FieldInfo("mdc_Material_Formul", "Description_ZH");

        [Column]
        public string Density { get { return _Density; } set { _Density = value; EntityState.FieldChange("Density"); } } 
        private string _Density;
        public static FieldInfo density = new FieldInfo("mdc_Material_Formul", "Density");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Material_Formul", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Material_Formul", "Status");
    }
}
